<?php

namespace app\models;

use Yii;

/**
 * This is the model class for table "setexamination".
 *
 * @property int $id 主键id
 * @property int $classid 班级id
 * @property int $paperid 试卷id
 * @property int $teacherid 出卷老师id
 * @property string $starttime 考试开始时间
 * @property string $tips 备注
 * @property string $create_time 创建时间
 */
class Setexamination extends \yii\db\ActiveRecord
{
    /**
     * {@inheritdoc}
     */
    public static function tableName()
    {
        return 'setexamination';
    }

    /**
     * {@inheritdoc}
     */
    public function rules()
    {
        return [
            [['classid', 'paperid', 'teacherid'], 'required'],
            [['classid', 'paperid', 'teacherid'], 'integer'],
            [['starttime', 'create_time'], 'safe'],
            [['tips'], 'string', 'max' => 255],
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'classid' => 'Classid',
            'paperid' => 'Paperid',
            'teacherid' => 'Teacherid',
            'starttime' => 'Starttime',
            'tips' => 'Tips',
            'create_time' => 'Create Time',
        ];
    }
}
